package com.castle.fortress.admin.study.course.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import lombok.EqualsAndHashCode;
import com.castle.fortress.admin.core.entity.BaseEntity;
/**
 * 课程/课件分类表 实体类
 *
 * @author castle
 * @since 2023-01-30
 */
@Data
@TableName("study_course_classify")
@EqualsAndHashCode(callSuper = true)
public class StudyCourseClassifyEntity extends BaseEntity  {
	private static final long serialVersionUID = 1L;
	/**
	 * 名称
	*/
	private String name;
	/**
	 * 上级分类
	*/
	@JsonSerialize(using = ToStringSerializer.class)
    	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Long parentId;
	/**
	 * 所有上级
	*/
    	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String parents;
	/**
	 * 排序
	*/
	private Integer sort;

}
